import PageTools from '@/components/PageTools'
import UploadExcel from './UploadExcel'
// 全局注册
export default {
  install(Vue) {
    Vue.component('PageTools', PageTools)
    Vue.component('UploadExcel', UploadExcel)
    // 休眠函数
    Vue.prototype.$sleep = function(timer = 500) {
      return new Promise(resolve => {
        setTimeout(() => {
          resolve()
        }, timer)
      })
    }
  }
}
